<?php
return array(
	//'配置项'=>'配置值'
	 //数据库配置信息
	'DB_TYPE'   => 'mysql', // 数据库类型
	'DB_HOST'   => 'localhost', // 服务器地址
	'DB_NAME'   => 'newphpcms', // 数据库名
	'DB_USER'   => 'root', // 用户名
	'DB_PWD'    => '', // 密码
	'DB_PORT'   => 3306, // 端口
	'DB_PREFIX' => 'v9_', // 数据库表前缀 

	'LOG_RECORD'=>false,//不记录日志
	'TMPL_CACHE_ON'=>false,//不开启模板编译缓存 
	//'DB_FIELDTYPE_CHECK'=>true, //字段类型验证
	'DEFAULT_MODULE'     => 'Index', //默认模块
    'URL_MODEL'          => '2', //URL模式
	'URL_CASE_INSENSITIVE' =>true,
	'UPLOAD_DIR' =>'D:/www/user_dushijia/Public/Uploads',
	'URL_HTML_SUFFIX'=>'.shtml',
	'LAYOUT_ON'=>true,
	//默认错误跳转对应的模板文件
	'TMPL_ACTION_ERROR' => 'Public:error',
	//默认成功跳转对应的模板文件
	'TMPL_ACTION_SUCCESS' => 'Public:success',

	//'URL_PATHINFO_DEPR'=>'_',
	'URL_ROUTER_ON'   => false, //开启路由
	'URL_ROUTE_RULES' => array( //定义路由规则 //'/^([a-z]+)\/([a-z]+)$/'        => 'News/lists?c=:2',
		'/^([a-z]+)$/'        => 'News/category?c=:1',
		'/^([a-z]+)\/(\d+)$/'        => 'News/category?c=:1&p=:2',
		'/^([a-z]+)\/index$/'        => 'Test/index',
		'/^([a-z]+)\/([a-z]+)$/'        => 'News/lists?f=:1&c=:2',
		'/^([a-z]+)\/([a-z]+)\/(\d+)$/'        => 'News/lists?f=:1&c=:2&p=:3',
		'/^([a-z]+)\/(\d+)\/(\d+)\/(\d+)$/'  => 'News/show?id=:4',
	),
	
	'HTML_CACHE_ON'=>false,
	/*
	'HTML_CACHE_RULES'=> array(
		'news:lists'=>array('{:module}/{:action}/{c}/{p}/{$_SERVER.REQUEST_URI|md5}',7200),
		'news:show'=>array('{:module}/{:action}/{id}/{$_SERVER.REQUEST_URI|md5}',0),
		'index:index'=>array('{:module}/{:action}/{$_SERVER.REQUEST_URI|md5}',3600),
		'test:index'=>array('{:module}/{:action}/{id}/{$_SERVER.REQUEST_URI|md5}',1),
		'news:category'=>array('{:module}/{:action}/{c}/{p}/{$_SERVER.REQUEST_URI|md5}',5400),
		//…更多操作的静态规则
	),
	'TOKEN_ON'=>true,  // 是否开启令牌验证
	'TOKEN_NAME'=>'__hash__',    // 令牌验证的表单隐藏字段名称
	'TOKEN_TYPE'=>'md5',  //令牌哈希验证规则 默认为MD5
	'TOKEN_RESET'=>true,  //令牌验证出错后是否重置令牌 默认为true
	'DB_FIELDTYPE_CHECK'=>true,  // 开启字段类型验证
	'VAR_FILTERS'=>'htmlspecialchars,stripslashes',//输入过滤
	*/






);
?>
